﻿using System;
using System.Threading;
using System.Windows.Forms;
using Slippor.Douban.Radio.Assist;
using System.Diagnostics;
using System.Security.Policy;
using System.IO;

namespace Slippor.Douban.Radio
{
    internal static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            AppDomain.CurrentDomain.AppendPrivatePath("Plugin");
            try
            {
                bool isFirst;
                using (new Mutex(true, Application.ProductName, out isFirst))
                {
                    if (isFirst)
                    {
                        Main mainForm = new Main();
                        Application.Run(mainForm);
                    }
                }
            }
            finally
            {
            }
        }
    }
}